﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005CD RID: 1485
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FLNGGMDHDJL : IMessage<FLNGGMDHDJL>, IMessage, IEquatable<FLNGGMDHDJL>, IDeepCloneable<FLNGGMDHDJL>, IBufferMessage
	{
		// Token: 0x170012FF RID: 4863
		// (get) Token: 0x060042C0 RID: 17088 RVA: 0x000B5FA3 File Offset: 0x000B41A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FLNGGMDHDJL> Parser
		{
			get
			{
				return FLNGGMDHDJL._parser;
			}
		}

		// Token: 0x17001300 RID: 4864
		// (get) Token: 0x060042C1 RID: 17089 RVA: 0x000B5FAA File Offset: 0x000B41AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FLNGGMDHDJLReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001301 RID: 4865
		// (get) Token: 0x060042C2 RID: 17090 RVA: 0x000B5FBC File Offset: 0x000B41BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FLNGGMDHDJL.Descriptor;
			}
		}

		// Token: 0x060042C3 RID: 17091 RVA: 0x000B5FC3 File Offset: 0x000B41C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FLNGGMDHDJL()
		{
		}

		// Token: 0x060042C4 RID: 17092 RVA: 0x000B5FCC File Offset: 0x000B41CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FLNGGMDHDJL(FLNGGMDHDJL other) : this()
		{
			this.cOGDMNGBNLJ_ = other.cOGDMNGBNLJ_;
			this.aJKLOMDDOON_ = ((other.aJKLOMDDOON_ != null) ? other.aJKLOMDDOON_.Clone() : null);
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this.magicUnitLevel_ = other.magicUnitLevel_;
			this.magicUnitId_ = other.magicUnitId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060042C5 RID: 17093 RVA: 0x000B604C File Offset: 0x000B424C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FLNGGMDHDJL Clone()
		{
			return new FLNGGMDHDJL(this);
		}

		// Token: 0x17001302 RID: 4866
		// (get) Token: 0x060042C6 RID: 17094 RVA: 0x000B6054 File Offset: 0x000B4254
		// (set) Token: 0x060042C7 RID: 17095 RVA: 0x000B605C File Offset: 0x000B425C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool COGDMNGBNLJ
		{
			get
			{
				return this.cOGDMNGBNLJ_;
			}
			set
			{
				this.cOGDMNGBNLJ_ = value;
			}
		}

		// Token: 0x17001303 RID: 4867
		// (get) Token: 0x060042C8 RID: 17096 RVA: 0x000B6065 File Offset: 0x000B4265
		// (set) Token: 0x060042C9 RID: 17097 RVA: 0x000B606D File Offset: 0x000B426D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData AJKLOMDDOON
		{
			get
			{
				return this.aJKLOMDDOON_;
			}
			set
			{
				this.aJKLOMDDOON_ = value;
			}
		}

		// Token: 0x17001304 RID: 4868
		// (get) Token: 0x060042CA RID: 17098 RVA: 0x000B6076 File Offset: 0x000B4276
		// (set) Token: 0x060042CB RID: 17099 RVA: 0x000B607E File Offset: 0x000B427E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x17001305 RID: 4869
		// (get) Token: 0x060042CC RID: 17100 RVA: 0x000B6087 File Offset: 0x000B4287
		// (set) Token: 0x060042CD RID: 17101 RVA: 0x000B608F File Offset: 0x000B428F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MagicUnitLevel
		{
			get
			{
				return this.magicUnitLevel_;
			}
			set
			{
				this.magicUnitLevel_ = value;
			}
		}

		// Token: 0x17001306 RID: 4870
		// (get) Token: 0x060042CE RID: 17102 RVA: 0x000B6098 File Offset: 0x000B4298
		// (set) Token: 0x060042CF RID: 17103 RVA: 0x000B60A0 File Offset: 0x000B42A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MagicUnitId
		{
			get
			{
				return this.magicUnitId_;
			}
			set
			{
				this.magicUnitId_ = value;
			}
		}

		// Token: 0x060042D0 RID: 17104 RVA: 0x000B60A9 File Offset: 0x000B42A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FLNGGMDHDJL);
		}

		// Token: 0x060042D1 RID: 17105 RVA: 0x000B60B8 File Offset: 0x000B42B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FLNGGMDHDJL other)
		{
			return other != null && (other == this || (this.COGDMNGBNLJ == other.COGDMNGBNLJ && object.Equals(this.AJKLOMDDOON, other.AJKLOMDDOON) && object.Equals(this.CostData, other.CostData) && this.MagicUnitLevel == other.MagicUnitLevel && this.MagicUnitId == other.MagicUnitId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060042D2 RID: 17106 RVA: 0x000B613C File Offset: 0x000B433C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.COGDMNGBNLJ)
			{
				num ^= this.COGDMNGBNLJ.GetHashCode();
			}
			if (this.aJKLOMDDOON_ != null)
			{
				num ^= this.AJKLOMDDOON.GetHashCode();
			}
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this.MagicUnitLevel != 0U)
			{
				num ^= this.MagicUnitLevel.GetHashCode();
			}
			if (this.MagicUnitId != 0U)
			{
				num ^= this.MagicUnitId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060042D3 RID: 17107 RVA: 0x000B61D9 File Offset: 0x000B43D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060042D4 RID: 17108 RVA: 0x000B61E1 File Offset: 0x000B43E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060042D5 RID: 17109 RVA: 0x000B61EC File Offset: 0x000B43EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.COGDMNGBNLJ)
			{
				output.WriteRawTag(40);
				output.WriteBool(this.COGDMNGBNLJ);
			}
			if (this.MagicUnitLevel != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MagicUnitLevel);
			}
			if (this.MagicUnitId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.MagicUnitId);
			}
			if (this.aJKLOMDDOON_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.AJKLOMDDOON);
			}
			if (this.costData_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.CostData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060042D6 RID: 17110 RVA: 0x000B629C File Offset: 0x000B449C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.COGDMNGBNLJ)
			{
				num += 2;
			}
			if (this.aJKLOMDDOON_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AJKLOMDDOON);
			}
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this.MagicUnitLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MagicUnitLevel);
			}
			if (this.MagicUnitId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MagicUnitId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060042D7 RID: 17111 RVA: 0x000B6330 File Offset: 0x000B4530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FLNGGMDHDJL other)
		{
			if (other == null)
			{
				return;
			}
			if (other.COGDMNGBNLJ)
			{
				this.COGDMNGBNLJ = other.COGDMNGBNLJ;
			}
			if (other.aJKLOMDDOON_ != null)
			{
				if (this.aJKLOMDDOON_ == null)
				{
					this.AJKLOMDDOON = new ItemCostData();
				}
				this.AJKLOMDDOON.MergeFrom(other.AJKLOMDDOON);
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			if (other.MagicUnitLevel != 0U)
			{
				this.MagicUnitLevel = other.MagicUnitLevel;
			}
			if (other.MagicUnitId != 0U)
			{
				this.MagicUnitId = other.MagicUnitId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060042D8 RID: 17112 RVA: 0x000B63EC File Offset: 0x000B45EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060042D9 RID: 17113 RVA: 0x000B63F8 File Offset: 0x000B45F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 40U)
					{
						this.COGDMNGBNLJ = input.ReadBool();
						continue;
					}
					if (num == 64U)
					{
						this.MagicUnitLevel = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.MagicUnitId = input.ReadUInt32();
						continue;
					}
					if (num == 90U)
					{
						if (this.aJKLOMDDOON_ == null)
						{
							this.AJKLOMDDOON = new ItemCostData();
						}
						input.ReadMessage(this.AJKLOMDDOON);
						continue;
					}
					if (num == 122U)
					{
						if (this.costData_ == null)
						{
							this.CostData = new ItemCostData();
						}
						input.ReadMessage(this.CostData);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001A25 RID: 6693
		private static readonly MessageParser<FLNGGMDHDJL> _parser = new MessageParser<FLNGGMDHDJL>(() => new FLNGGMDHDJL());

		// Token: 0x04001A26 RID: 6694
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001A27 RID: 6695
		public const int COGDMNGBNLJFieldNumber = 5;

		// Token: 0x04001A28 RID: 6696
		private bool cOGDMNGBNLJ_;

		// Token: 0x04001A29 RID: 6697
		public const int AJKLOMDDOONFieldNumber = 11;

		// Token: 0x04001A2A RID: 6698
		private ItemCostData aJKLOMDDOON_;

		// Token: 0x04001A2B RID: 6699
		public const int CostDataFieldNumber = 15;

		// Token: 0x04001A2C RID: 6700
		private ItemCostData costData_;

		// Token: 0x04001A2D RID: 6701
		public const int MagicUnitLevelFieldNumber = 8;

		// Token: 0x04001A2E RID: 6702
		private uint magicUnitLevel_;

		// Token: 0x04001A2F RID: 6703
		public const int MagicUnitIdFieldNumber = 10;

		// Token: 0x04001A30 RID: 6704
		private uint magicUnitId_;
	}
}
